package net.meblabs.bookapp.data;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class HintRowMapper implements RowMapper<Hint> {
	
	@Override
	public Hint mapRow(ResultSet rs, int arg1) throws SQLException {
		Hint bean = new Hint();
		bean.setValue(rs.getString("value"));
		bean.setLabel(rs.getString("label"));
		return bean;
	}
}